package com.ycc.springcloud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ycc.springcloud.pojo.Content;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
public interface MyMapper extends BaseMapper<Content> {
    @Select("select * from content")
    public List<Content> selectAll();


    @Select("select * from content where title like #{title}")
    public List<Content> selectByTitle(String title);

}
